package cn.welldragon.qq.ui;

import javax.swing.UIDefaults;
import javax.swing.plaf.basic.BasicLookAndFeel;

public class QQLookAndFeel extends BasicLookAndFeel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public String getName() {
		return "QQLookAndFeel";
	}

	@Override
	public String getID() {
		return "QQLookAndFeel";
	}

	@Override
	public String getDescription() {
		return "QQLookAndFeel";
	}

	@Override
	public boolean isNativeLookAndFeel() {
		return false;
	}

	@Override
	public boolean isSupportedLookAndFeel() {
		return true;
	}

	@Override
	protected void initClassDefaults(UIDefaults table) {
		super.initClassDefaults(table);
		final String packageName = "cn.welldragon.qq.ui.";

		Object[] uiDefaults = { //
		"ButtonUI", packageName + "QQButtonUI",//
				"CheckBoxUI", packageName + "QQCheckBoxUI", //
				"RadioButtonUI", packageName + "QQRadioButtonUI", //
				"SysButtonUI", packageName + "QQSysButtonUI", //
		};

		table.putDefaults(uiDefaults);
	}
}
